import './style.css'
// import typescriptLogo from './typescript.svg'
// import viteLogo from '/vite.svg'
// import {setupCounter} from './counter.ts'

const app = document.querySelector<HTMLDivElement>('#app')!;
const inputE = `
<input type="file" id="file-selector" accept=".csv, .xlsx">
`;
app.innerHTML = inputE
const fileSelector = document.getElementById('file-selector')!;
fileSelector.addEventListener('change', async e => {
    const fileList = (e.target as HTMLInputElement).files;
    fileList?.item(0)?.text().then(console.log);
});

